/*
 * Copyright(c) 2020-2100 万达信息股份有限公司 版权所有
 * WONDERS INFORMATION CO., LTD. ALL RIGHTS RESERVED.
 */

package com.wondersgroup.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author: huym
 * @version: 1.0
 * @date: 2020/11/26
 */
@ExcelTarget("emp")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Emp implements Serializable {
    @Excel(name = "姓名")
    private String name;
    @Excel(name = "生日",format = "yyyy-MM-dd",isImportField = "true")
    private Date bir;
    @Excel(name = "年龄",suffix = "岁")
    private Integer age;
    @Excel(name = "状态",replace = {"激活_1","锁定_0"})
    private String status;
    @Excel(name = "头像",width = 20,height = 20,type = 2)
    private String photo;
}
